<script id="user_orders_tpl" type="text/html">
    {{# for(var i = 0 ; i < d.length ; i++){ }}
    <div class="card0">
        <div class="card-header">
            <ul class="pull-left">
                <li><span>日期：</span>
                    <p>{{d[i]['order'].createdAtStr}}</p></li>
                <li><span>订单号：</span>
                    <p>{{d[i]['order'].orderNumber}}</p></li>
            </ul>
            <ul class="pull-right">
                <li><span>状态：</span>
                    <p><i>{{d[i]['order'].orderStatusStr}}</i></p></li>

            </ul>
        </div>
        <div class="card-content">
            <ul>
                {{# for(var j = 0 ; j < d[i]['orderItem'].length ; j++){ }}
                <li>
                    <a href="#"><img src="{{d[i]['orderItem'][j].main_image}}"></a>
                    <h3>{{d[i]['orderItem'][j].name}}</h3>
                    <p><span>{{d[i]['orderItem'][j].spec != undefined ? d[i]['orderItem'][j].spec : '--'}} / {{d[i]['orderItem'][j].unit != undefined ? d[i]['orderItem'][j].unit : '--'}} X {{d[i]['orderItem'][j].buy_number}}</span><em>￥{{d[i]['orderItem'][j].sale_price}}</em></p>
                </li>
                {{# } }}
                *{<li>}*
                    *{<a href="content.html"><img src="img/p7.jpg"></a>}*
                    *{<h3>新鲜茭白莒县特产</h3>}*
                    *{<p><span>500g/捆X2</span><em>￥2.5</em></p>}*
                *{</li>}*
            </ul>
        </div>
        <div class="card-footer">
            <div class="pull-left"><p>品种：<i>{{d[i]['order'].kindNumber}}</i></p></div>
            <div class="pull-right">
                订单总额：<em>￥{{d[i]['order'].paymentedAmount}}</em>
            </div>
        </div>
    </div>
    {{# } }}

</script>
